package com.ruoyi.yl.receptionManage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.yl.receptionManage.domain.YlVisitReservation;
import com.ruoyi.yl.receptionManage.vo.YlVisitReservationVo;
import com.ruoyi.yl.receptionManage.mapper.YlVisitReservationMapper;
import com.ruoyi.yl.receptionManage.service.IYlVisitReservationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 参观预约Service业务层处理
 *
 * @author Ming
 * @date 2025-10-21
 */
@Service
public class YlVisitReservationServiceImpl extends ServiceImpl<YlVisitReservationMapper, YlVisitReservation> implements IYlVisitReservationService {

    @Override
    public TableDataInfo<YlVisitReservationVo> queryList(YlVisitReservationVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<YlVisitReservationVo> queryAll(YlVisitReservationVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public YlVisitReservationVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
